package com.scu.phototab.controller;

import com.scu.phototab.util.ResponseUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Objects;

/**
 * Created by tianfei on 2017/5/2.
 */
@RestController(value = "/types")
public class UserTypeController{


    //fixme @@@@@@@@@@@@@@
    /**
     * 用户第一次初始化App时（或者当用户删除了所有的喜好类型时）
     * 请求当前服务器上存在的所有图片类型
     */
    @PostMapping(value = "all")
    public Object getAllTypesOfImg(){





        return ResponseUtil.success();
    }

    //登录后查询是否需要让用户选择喜好类型；即数据库中是否已经保存了用户之前选择过的
    @PostMapping(value = "/check")
    public Object checkUserChosenTypes(@RequestParam Integer uid){



        return ResponseUtil.success();
    }

    @PostMapping(value = "/save")
    public Object saveUserChosenTypes(@RequestParam Integer uid){



        return ResponseUtil.success();
    }



}
